Alphabetic Minimax Trees in Linear Time

نویسنده

  • Pawel Gawrychowski
چکیده

We develop a linear time algorithm algorithm for the following problem: given an ordered sequence of n real weights w1, w2, . . . , wn, construct a binary tree on n leaves labeled with those weights when read from left to right so that the maximum value of wi plus depth of the i-th leftmost leaf is minimized. This improves the previously known O(n logn) time solutions [2,11,13]. We also give a simplified O(nd) version of the algorithm, where d is the number of distinct integer parts of wi, which does not require the full power of the word RAM model. This improves the previously known O(nd log log n) solution of Gagie [5]. Key-words: minimax tree, Yeung’s inequality, word RAM

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A New Algorithm for Building Alphabetic Minimax Trees

We show how to build an alphabetic minimax tree for a sequence W = w1, . . . , wn of real weights in O(nd log logn) time, where d is the number of distinct integers ⌈wi⌉. We apply this algorithm to building an alphabetic prefix code given a sample.

متن کامل

Optimum Alphabetic Binary Trees

We describe a modiication of the Hu{Tucker algorithm for constructing an optimal alphabetic tree that runs in O(n) time for several classes of inputs. These classes can be described in simple terms and can be detected in linear time. We also give simple conditions and a linear algorithm for determining, in some cases, if two adjacent nodes will be combined in the optimal alphabetic tree.

متن کامل

Minimax Trees in Linear Time with Applications

A minimax tree is similar to a Huffman tree except that, instead of minimizing the weighted average of the leaves’ depths, it minimizes the maximum of any leaf’s weight plus its depth. Golumbic (1976) introduced minimax trees and gave a Huffman-like, O(n log n)-time algorithm for building them. Drmota and Szpankowski (2002) gave another O(n log n)-time algorithm, which takes linear time when th...

متن کامل

Optimal Integer Alphabetic Trees in Linear Time

We show that optimal alphabetic binary trees can be constructed in O(n) time if the elements of the initial sequence are drawn from a domain that can be sorted in linear time. We describe a hybrid algorithm that combines the bottom-up approach of the original Hu-Tucker algorithm with the top-down approach of Larmore and Przytycka’s Cartesian tree algorithms. The hybrid algorithm demonstrates th...

متن کامل

Alphabetic Trees Theory and Applications in Layout Driven Logic Synthesis Revision of TCAD Manuscript

Routing plays an important role in determining the total circuit area and circuit performance and hence must be addressed as early as possible during the design process In this paper an e ective routing driven approach for technology dependent logic synthesis which relies on alphabetic tree construction is presented Alphabetic trees are trees which are generated under the restriction that the i...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013